# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=erase-registrations
pkgver=1.0
pkgrel=3
pkgdesc='An IAX flooder.'
url='http://www.hackingexposedvoip.com/'
groups=('blackarch' 'blackarch-voip')
license=('GPL')
arch=('x86_64' 'aarch64')
depends=('libnet')
makedepends=('gcc' 'make')
source=('http://www.hackingexposedvoip.com/tools/erase_registrations.tar.gz'
        'http://www.hackingexposedvoip.com/tools/hack_library.tar.gz')
sha512sums=('bb97a415b163c5a52b526331ff0dd94e8177055b2dffce92c9083c352fee5dbf189d88d2ff4c3fdf3c2f3e2445cd9fd8fc889c47fbb451069bb5f73d66b836cf'
            'bce70cbfd097b83d466bc7559261e2ccf10479820de8d15db65132369fa919a7805ed585a68fef16a358246a1bc8bcf02011928abbe04aaf9e4b973a47c45dce')

build() {
  cd hack_library

  sed -i "s:gcc :gcc $CFLAGS :" Makefile

  make

  cd "$srcdir/erase_registrations"

  sed -i "s:gcc :gcc $CFLAGS :" Makefile

  make
}

package() {
  cd erase_registrations

  install -Dm 755 erase_registrations "$pkgdir/usr/bin/$pkgname"
}

